package pearson.automation.forms;

import org.openqa.selenium.By;

import pearson.automation.assets.AssetList;

import framework.elements.Label;

public class BookDetailsForm extends AssetDetailsForm {

    private Label tableOfContents = new Label(By.linkText("Table of contents"), "TOC");
    public AssetList chapters = new AssetList(
            "//ul[@class='contain srl']", 
            "//li[contains(@class,'srl-item')]"); 
    
    public boolean hasTOC() {
        return tableOfContents.isPresent();
    }

}
